home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1993 December
/
PSL Monthly Shareware CD-ROM (December 1993).iso
/
prgmming
/
dos
/
tools
/
sfxlib.exe
/
SFXLIB.DOC
< prev
next >
Wrap
Text File
|
1992-03-23
|
7KB
|
245 lines
╒════════════════════════════════════════════════════════════╕
│ │
│ THE SOUND EFFECTS LIBRARY │
│ │
│ from david smith │
│ and bill cravener │
│ Copyright 1992 │
│ │
╘════════════════════════════════════════════════════════════╛
I invented the Sound Effects Library in March of 1992 as an
attempt to enhance the programming capabilities of those
out there who are hacking in Turbo C. It is fully compatible
with all versions of TC, and can make an otherwise boring
program exciting. I would release this as Shareware, but
we are supposedly in a recession, so save your money. This
utility is FREEWARE. You may use it however you'd like, and
share it with your programming friends.
====== BEGINNING LIBRARY USAGE ============================================
(Skip this if you are an experienced programmer)
For those of you who have not used libraries before, I am going
to make it REAL simple.
In the "include" section at the top of your C files,
add: #INCLUDE <DAVE&BIL.H> then copy that .H file into
your \tc\include directory.
Or try #INCLUDE "DAVE&BIL.H" and keep that .H file in the
current directory.
Next, write a program with a Sound Effect in it. For example:
TEST.C
source code for TEST.C:
┌──────────────────────────────────────────────────────────┐
│ #INCLUDE <DAVE&BIL.H> │
│ #INCLUDE <STDIO.H> │
│ │
│ VOID MAIN(VOID) │
│ { │
│ │
│ // This is a test program that plays a sound then stops │
│ │
│ high(); /* Plays my sound */ │
│ delay(1000); /* pauses one second */ │
│ puts(" All done !"); /* displays our message */ │
│ exit(); /* then leave */ │
│ │
│ } │
└──────────────────────────────────────────────────────────┘
then compile it with: TCC -MS TEST.C SFXLIB.LIB
(including SFXLIB.LIB in the command tells the compiler to
find our function--> high(); inside SFXLIB.LIB library. )
The file DAVE&BIL.H contains our function declaration, telling
the compiler that there's a function called high(); that is
NOT included in our source program.
Then, the compiler finds that function in SFXLIB.LIB when it
starts compiling the program.
That's how it works.
=========================================================================
FUNCTIONS YOUR CAN USE:
(be sure and DO NOT capitalize the function names. I designed
them to be lowercase for ease of typing. )
arcade1();
arcade2(); ┌───────────────────────────────────┐
│All 17 sounds have unique qualities│
bees(); │and effects of their own. Try each│
│one out in the SFXDEMO.EXE program │
deadbird(); │to determine the sound they create.│
└───────────────┬───────────────────┘
downup(); │
│
echos(); │
│
fart(); │
│
fire(); │
────────────────┘
high();
motors();
pulse();
ringing();
siren();
wars();
bomb();
bloop();
beep();
AND REMEMBER, THEY ARE FREEWARE !
(but if you would like the complete version, including
Sound FX for Windows, part 1, 2, 3, and 4
Sound FX TSR
and the newest, hottest version for DOS !
fill in the order form below.... )
===========================================================================
Sound Effects 5 Disk Order Form
Name: ______________________________________________________
Company: ___________________________________________________
Address: ___________________________________________________
City: ____________________________ State: _________________
Zip code: _________________ Phone # : _____________________
CompuServe # : _____________________________________________
How did you acquire SFX ? __________________________________
____________________________________________________________
What sound do you like best ?_______________________________
____________________________________________________________
Registration $ 15.00
(shipping is free inside U.S.)
Shipping outside continental U.S. ( $ 5.00 ) $________
Total: $________
All Payments Must be in U.S. Dollars
Make check or money order payable to: David Smith
1104 Mason Dr.
Hurst TX 76053
You can order directly from me or from Public (software) Library
with your MC, Visa, AmEx, or Discover card by calling 800-242-4PsL
(from overseas: 713-524-6394) or by FAX to 713-524-6398 or by
CompuServe to 71355,470. These numbers are for ordering only.
I can NOT be reached at those numbers. To contact me for information
about dealer pricing, volume discounts, site licensing, the status
of shipment of the product, the latest version number or for technical
information, write me at the above address.
----------------end-of-author's-documentation---------------
Software Library Information:
This disk copy provided as a service of
Public (software) Library
We are not the authors of this program, nor are we associated
with the author in any way other than as a distributor of the
program in accordance with the author's terms of distribution.
Please direct shareware payments and specific questions about
this program to the author of the program, whose name appears
elsewhere in this documentation. If you have trouble getting
in touch with the author, we will do whatever we can to help
you with your questions. All programs have been tested and do
run. To report problems, please use the form that is in the
file PROBLEM.DOC on many of our disks or in other written for-
mat with screen printouts, if possible. PsL cannot debug pro-
programs over the telephone, though we can answer questions.
Disks in the PsL are updated monthly, so if you did not get
this disk directly from the PsL, you should be aware that the
files in this set may no longer be the current versions. Also,
if you got this disk from another vendor and are having prob-
lems, be aware that some files may have become corrupted or
lost by that vendor. Get a current, working disk from PsL.
For a copy of the latest monthly software library newsletter
and a list of the 4,000+ disks in the library, call or write
Public (software) Library
P.O.Box 35705 - F
Houston, TX 77235-5705
1-800-2424-PSL
MC/Visa/AmEx/Discover
Outside of U.S. or in Texas
or for general information,
Call 1-713-524-6394
PsL also has an outstanding
catalog for the Macintosh.